package com.ys.entity.flow;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YSP_TaskFlowPath", catalog="Id")
public class YspTaskFlowPath extends BaseEntity<YspTaskFlowPath> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TaskId", nameJava="taskId", typeDataBase="bigint")
	private Long taskId;
	@YsField(nameDataBase="TaskAuditId", nameJava="taskAuditId", typeDataBase="bigint")
	private Long taskAuditId;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="tinyint")
	private Integer type;
	@YsField(nameDataBase="NodeIdFrom", nameJava="nodeIdFrom", typeDataBase="bigint")
	private Long nodeIdFrom;
	@YsField(nameDataBase="NodeIdTo", nameJava="nodeIdTo", typeDataBase="bigint")
	private Long nodeIdTo;
	@YsField(nameDataBase="LinkId", nameJava="linkId", typeDataBase="bigint")
	private Long linkId;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YspTaskFlowPath setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getTaskId() {
		return taskId;
	}
	public YspTaskFlowPath setTaskId(Long taskId) {
		this.taskId = taskId;
		return this;
	}
	public Long getTaskAuditId() {
		return taskAuditId;
	}
	public YspTaskFlowPath setTaskAuditId(Long taskAuditId) {
		this.taskAuditId = taskAuditId;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public YspTaskFlowPath setType(Integer type) {
		this.type = type;
		return this;
	}
	public Long getNodeIdFrom() {
		return nodeIdFrom;
	}
	public YspTaskFlowPath setNodeIdFrom(Long nodeIdFrom) {
		this.nodeIdFrom = nodeIdFrom;
		return this;
	}
	public Long getNodeIdTo() {
		return nodeIdTo;
	}
	public YspTaskFlowPath setNodeIdTo(Long nodeIdTo) {
		this.nodeIdTo = nodeIdTo;
		return this;
	}
	public Long getLinkId() {
		return linkId;
	}
	public YspTaskFlowPath setLinkId(Long linkId) {
		this.linkId = linkId;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YspTaskFlowPath setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YspTaskFlowPath setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YspTaskFlowPath setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YspTaskFlowPath setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YspTaskFlowPath yspTaskFlowPath(
		Long taskId,
		Long taskAuditId,
		Integer type,
		Long nodeIdFrom,
		Long nodeIdTo,
		Long linkId,
		Integer sortNo,
		Integer status
			) {
		YspTaskFlowPath entity = new YspTaskFlowPath();
		entity.setTaskId(taskId);
		entity.setTaskAuditId(taskAuditId);
		entity.setType(type);
		entity.setNodeIdFrom(nodeIdFrom);
		entity.setNodeIdTo(nodeIdTo);
		entity.setLinkId(linkId);
		entity.setSortNo(sortNo);
		entity.setStatus(status);
		return entity;
	}
}